﻿using BaseNet.Core.Dtos;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseNet.Application.System.Role.Dto
{
    /// <summary>
    /// 系统角色添加input
    /// </summary>
    public class SysRoleAddInput
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required(ErrorMessage = "角色名不能为空")]
        public string Name { get; set; }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool? IsActive { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Required(ErrorMessage = "排序不能为空")]
        public int? Sort { get; set; }
    }
}
